<template>
	<MainContent title="组织机构管理">
		<template v-slot:title>
			<span class="title">
				<i class="el-icon-office-building"></i>
				<span>&nbsp;组织机构管理</span>
			</span>
		</template>
		<template v-slot:default>
			<div class="shoulder">
				<el-button size="mini" icon="el-icon-plus">新增</el-button>
				<el-button size="mini" type="danger" icon="el-icon-delete">删除</el-button>
				<el-button size="mini" icon="el-icon-refresh"></el-button>
				<el-button size="mini" icon="el-icon-menu"></el-button>
			</div>
			<div class="content">
				<el-table size="mini" stripe :data="resources" row-key="id">
					<el-table-column type="selection" width="55" align="center"/>
					<el-table-column prop="code" label="机构代码"></el-table-column>
					<el-table-column prop="name" label="机构名称"></el-table-column>
					<el-table-column prop="path" label="路径"></el-table-column>
					<el-table-column prop="createTime" label="创建时间"></el-table-column>
					<el-table-column prop="updateTime" label="更新时间"></el-table-column>
				</el-table>
			</div>
		</template>
	</MainContent>
</template>

<script>
import MainContent from "@/components/common/MainContent";
export default {
  name: "Organization",
	components: { MainContent },
	data() {
		return {
			resources: []
		}
	},
	created() {
		this.axios({
			method: "get",
			url: "/sys/organization/getOrgList"
		}).then(response => {
			if (response.status === 200) {
				this.resources = response.data
			}
		})
	}
};
</script>

<style scoped>
</style>
